package com.sskj.mqtt.many;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: Like
 * @Date: 2025/3/3 15:40
 * @Description: MQTT监听注解
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface MqttListener {
    /**
     * 对应的MQTT客户端ID
     */
    String clientId();

    /**
     * 监听的MQTT主题
     */
    String topic();
}
